package com.common.android.utils.http;

import java.net.URI;

import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
/**
 * 实现delete带entity body
 * 
 * <br>Created 2014-6-12 上午11:12:28
 * @version  
 * @author   huangszh		
 *
 * @see
 */
public class HttpEntityDelete extends HttpEntityEnclosingRequestBase{

    public static final String METHOD_NAME = "DELETE";
    
    @Override
    public String getMethod() {

        return METHOD_NAME;
    }

    /**
     * 
     * Creates a new instance of HttpEntityDelete.
     * <br>Created 2014-6-12 上午11:13:34
     * @param uri 请求地址
     */
    public HttpEntityDelete(final String uri) {
        super();
        setURI(URI.create(uri));
    }
    
    /**
     * 
     * Creates a new instance of HttpEntityDelete.
     * <br>Created 2014-6-12 上午11:13:29
     * @param uri 请求地址
     */
    public HttpEntityDelete(final URI uri) {
        super();
        setURI(uri);
    }
    
    /**
     * 
     * Creates a new instance of HttpEntityDelete.
     * <br>Created 2014-6-12 上午11:13:37
     */
    public HttpEntityDelete() {
        super();
    }
}
